# 脚本的input组件
from widgets.Input import Input

from widgets.scriptWidgets.ScriptWidget import ScriptWidget


class ScriptInput(Input):
    def __init__(self, parent: ScriptWidget, title, maxLength=6, inputType='number'):
        super(ScriptInput, self).__init__(parent, title)
        self.setMaxLength(maxLength)
        self.setInputType(inputType)
        self.setFixedHeight(parent.lineHeight)
